package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.ClbxDetDao;
import io.renren.entity.ClbxDetEntity;
import io.renren.service.ClbxDetService;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


@Transactional(propagation= Propagation.REQUIRED)
@Service("clbxDetService")
public class ClbxDetServiceImpl implements ClbxDetService {
	@Autowired
	private ClbxDetDao clbxDetDao;
	
	@Override
	public ClbxDetEntity queryObject(Integer bxdetId){
		return clbxDetDao.queryObject(bxdetId);
	}
	
	@Override
	public List<ClbxDetEntity> queryList(Map<String, Object> map){
		return clbxDetDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return clbxDetDao.queryTotal(map);
	}
	
	@Override
	public void save(ClbxDetEntity clbxDet){
		clbxDetDao.save(clbxDet);
	}

	@Override
	public void update(ClbxDetEntity clbxDet){
		clbxDetDao.update(clbxDet);
	}
	
	@Override
	public void delete(Integer bxdetId){
		clbxDetDao.delete(bxdetId);
	}
	
	@Override
	public void deleteBatch(Integer[] bxdetIds){
		clbxDetDao.deleteBatch(bxdetIds);
	}
	
}
